<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>图书管理系统-登录</title>
		<style type="text/css">
			* {
				margin: 0px;
				padding: 0px;
			}
			
			.all {
				width: 100%;
			}
			
			.top {
				width: 100%;
				height: 70px;
				background-color: black;
				color: white;
			}
			
			.top h1 {
				text-align: center;
				width: 100%;
				padding-top: 10px;
			}
			
			.middles {
				width: 100%;
			}
			
			.left {
				width: 20%;
				height: 600px;
				background-color: #888888;
				float: left;
			}
			
			.bottom {
				height: 50px;
				width: 100%;
				background-color: #444444;
				position: fixed;
				bottom: 0px;
			}
			
			.left ul li {
				width: 100%;
				text-align: center;
				line-height: 50px;
			}
			
			.left ul li:hover {
				background-color: #C0C0C0;
			}
			
			a {
				text-decoration: none;
				display: block;
			}
			
			.right{
				float: left;
				width:80%;
				height: 600px;
			}
			.bottom p {
				width: 100%;
				text-align: center;
				color: white;
				padding-top: 10px;
			}
			
			.includes{
				margin: 60px 10%;
			}
		</style>
	</head>

	<body>
		<div class="all">
			<div class="top">
				<h1>图书管理系统</h1></div>
			<div class="middles">
				<div class="left">
					<ul>
						<li>
							<a href="/houtai.php?ctr=list">图书列表</a>
						</li>
						<li>
							<a href="/houtai.php?ctr=add">添加图书</a>
						</li>
						<li>
							<a href="/houtai.php?ctr=jie">借阅管理</a>
						</li>
						<li>
							<a href="/houtai.php?ctr=users">用户管理</a>
						</li>
						<li>
							<a href="/houtai.php?ctr=classes">分类管理</a>
						</li>
						<?php 
							if($_GET['ctr']=="change")
							{
								echo '<li>
							<a href="/houtai.php?ctr=change&change='.$_GET['change'].'" style="background-color: #C0C0C0;">修改图书</a>
						</li>';
							}
						?>
					</ul>
				</div>
				<div class="right">
					<div class="includes">
						<?php 
						if(!empty($_GET['ctr']))
						{
							if($_GET['ctr']=="list")
							{
								require_once "/includes/list.php";
							}elseif($_GET['ctr']=="add"){
								require_once "/includes/add.php";
							}
							elseif($_GET['ctr']=="change")
							{
								require_once "/includes/change.php";
							}
							elseif($_GET['ctr']=="classes")
							{
								require_once "/includes/classes.php";
							}
							elseif($_GET['ctr']=="jie")
							{
								require_once "/includes/jieyue.php";
							}
						}
						?>
					</div>
					
				</div>
			</div>
			<div class="bottom">
				<p>MADE BY swust 3
					<p>
			</div>
		</div>
	</body>

</html>